<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMediationRecordsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('mediation_records', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('users_id');
            $table->integer('case_id');
            $table->timestamp('time')->nullable()->comment('调解时间');
            $table->string('location')->nullable()->comment('调解地点');
            $table->text('parties')->nullable()->comment('被调解人');
            $table->text('process')->nullable()->comment('调解过程记录');
            $table->text('result')->nullable()->comment('调解结果');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('mediation_records');
    }
}
